<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<head th:replace="dashboard/header :: header"></head>
<body>

<!--
@desc 磁盘空间 更新
@author WeiXiaoJin
@since 2020-01-26 10:17:35
-->

	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">

								<form class="form-horizontal" id="modifyForm">

									<input type="hidden" name="id" th:value="${bean.id}" />
									
<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">目录 </label>
	<div class="col-md-9">
				<input class="form-control" id="dirName" type="text" th:value="${ bean.dirName}" name="dirName" placeholder="目录">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">剩余空间 </label>
	<div class="col-md-9">
				<input class="form-control" id="dirFree" type="text" th:value="${ bean.dirFree}" name="dirFree" placeholder="剩余空间">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">目录类型 </label>
	<div class="col-md-9">
				<input class="form-control" id="sysTypeName" type="text" th:value="${ bean.sysTypeName}" name="sysTypeName" placeholder="目录类型">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">空间大小 </label>
	<div class="col-md-9">
				<input class="form-control" id="total" type="text" th:value="${ bean.total}" name="total" placeholder="空间大小">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">类型名称 </label>
	<div class="col-md-9">
				<input class="form-control" id="typeName" type="text" th:value="${ bean.typeName}" name="typeName" placeholder="类型名称">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">使用比率 </label>
	<div class="col-md-9">
				<input class="form-control" id="usage" type="text" th:value="${ bean.usage}" name="usage" placeholder="使用比率">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">已使用 </label>
	<div class="col-md-9">
				<input class="form-control" id="used" type="text" th:value="${ bean.used}" name="used" placeholder="已使用">
			</div>
</div>
												<div class="form-group row">
	<label class="col-md-2 col-form-label control-label" for="text-input">所属状态 </label>
	<div class="col-md-9">
				<input class="form-control" id="systemStatusId" type="text" th:value="${ bean.systemStatusId}" name="systemStatusId" placeholder="所属状态">
			</div>
</div>
																				</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

	<footer th:replace="dashboard/footer :: footer"></footer>

	<script type="text/javascript">
		var modifyForm = $("#modifyForm") ; 
		$(function(){
			addForm.validate({
				ignore: [],  
				rules: {
dirName: {required:true}
,dirFree: {required:true}
,sysTypeName: {required:true}
,total: {required:true}
,typeName: {required:true}
,usage: {required:true}
,used: {required:true}
,systemStatusId: {required:true}
				}
			});
		}) ;

		function submitHandler() {
			var result = $.validate.form("modifyForm");
			if(result){	
				var modifyUrl = ctx+"base/logger/logSystemFiles/update" ;
				$.operate.save(modifyUrl , modifyForm.serialize());
			}
	    }
	</script>
</body>
</html>
